package cn.yh.nft.turbo.api.inventory;

import cn.yh.nft.turbo.api.inventory.request.InventoryRequest;

/**
 * @ClassName: InventoryTransactionFacadeService
 * @Author: 草莓爱上啵啵
 *
 *  库存服务
 */
public interface InventoryTransactionFacadeService {

    /**
     *  库存扣减-try
     *
     *
     * @param inventoryRequest
     * @return
     */
    public Boolean tryDecrease(InventoryRequest inventoryRequest);

    /**
     * 库存扣减-confirm
     *
     *
     * @param inventoryRequest
     * @return
     */
    public Boolean confirmDecrease(InventoryRequest inventoryRequest);


    /**
     * 库存扣减-confirm
     * @param inventoryRequest
     * @return
     */
    public Boolean cancelDecrease(InventoryRequest inventoryRequest);
}
